package com.fg.cloud.manager.entry.system;

import java.math.BigDecimal;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fg.cloud.common.convert.CustomBigDecimalSerialize;
import com.fg.cloud.manager.entry.BaseEntity;

/**
 * Description:购物车实体类
 * @author around
 * @date 2017年10月19日下午4:02:27
 */
public class AgencyCartEntity extends BaseEntity {

	private static final long serialVersionUID = -7449512796715187007L;

	/** 厂商ID */
	private Long facId;
	
	/** 经销商ID */
	private Long ageId;
	
	/** 商品ID */
	private Long productId;
	
	/** 商品skuID */
	private Long skuId;
	
	/** 批次号 */
	private String batchNumber;
	
	/** 实际购买数量 */
	private BigDecimal amount;
	
	/** 单位ID */
	private Long unitId;
	
	/** 自定义规格 */
	private String productSpec;
	
	/** 实际价格 */
	@JsonSerialize(using=CustomBigDecimalSerialize.class)
	private BigDecimal promotionPrice;
	
	/** 是否手工价格 */
	private Integer isCustom;

	public Long getFacId() {
		return facId;
	}

	public void setFacId(Long facId) {
		this.facId = facId;
	}

	public Long getAgeId() {
		return ageId;
	}

	public void setAgeId(Long ageId) {
		this.ageId = ageId;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public Long getSkuId() {
		return skuId;
	}

	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}

	public String getBatchNumber() {
		return batchNumber;
	}

	public void setBatchNumber(String batchNumber) {
		this.batchNumber = batchNumber;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Long getUnitId() {
		return unitId;
	}

	public void setUnitId(Long unitId) {
		this.unitId = unitId;
	}

	public BigDecimal getPromotionPrice() {
		return promotionPrice;
	}

	public void setPromotionPrice(BigDecimal promotionPrice) {
		this.promotionPrice = promotionPrice;
	}

	public Integer getIsCustom() {
		return isCustom;
	}

	public void setIsCustom(Integer isCustom) {
		this.isCustom = isCustom;
	}

	public String getProductSpec() {
		return productSpec;
	}

	public void setProductSpec(String productSpec) {
		this.productSpec = productSpec;
	}
	
}
